package com.mapper;

import com.entity.Items;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ItemsMapper {
    void insertItems(Items items);
    void deleteItemsById(Integer id);
    void updateItems(Items items);
    Items selectItemsById(Integer id);
    Items selectItemsByName(String name);
    List<Items> selectItems();
    List<Items> selectPageItems(@Param("pageNum")Integer pageNum,
                              @Param("pageSize")Integer pageSize);
    int countRowsByBookId(Integer book_id);
}
